# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns
from plzkeepthat.controller.pages import home
from plzkeepthat.controller.pages import browse
from plzkeepthat.controller.pages import about
from plzkeepthat.controller.pages import edit
from plzkeepthat.controller.pages import share
from plzkeepthat.controller.pages import delete
from plzkeepthat.controller.pages import details
from plzkeepthat.controller.pages import thumbnail
from plzkeepthat.controller.pages import filter
from plzkeepthat.controller.pages import filter_no_page

# URL-patterns the application responds to..
urlpatterns = patterns(
                       '',
                       (r'^about$', about),
                       (r'^edit/([\d\w-]*)$', edit),
                       (r'^details/([\d\w-]+)$', details),
                       (r'^delete/([\d\w-]+)$', delete),
                       (r'^thumb/([\d\w-]+)$', thumbnail),
                       (r'^filter/([\wäöüÄÖÜß]+)/([\d]*)$', filter),
                       (r'^filter/([\wäöüÄÖÜß]+)$', filter_no_page),
                       (r'^share/([\d\w-]+)$', share),
                       (r'^(\d+)$', browse),
                       (r'^.*$', home) # everything else
                       )
